/*
 *  $Id: IceColossus.cs 939 2009-12-03 13:12:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

using System;

namespace Ragima.Cards001.Water.Lands {
    public class IceColossus: LandCard<Creature> {
        public IceColossus(): base("001_w_l_ice_colossus") {
            Level = CompleteLevel.Final;
            Element = ElementType.Water;
            Value = 100;
            Target = new CreatureTarget(GetTargetPhrase(), true, false, CreatureTarget.IsNotDisabled);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Water, 2));
        }

        protected override void DoAction(TargetArgs<Creature> args) {
            int mana = Math.Min(args.Target.Card.GetSumMana(), 4);
            args.Player.IncrementMana(ElementType.Water, mana);
            args.Target.InstantDeath();
            base.DoAction(args);
        }
    }
}
